<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body th:fragment="auth">
<div class="setting_search tabs">
	<div class="btn-group-box">
		<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addAuth"><i class="add"></i>添加</button>
		<button type="button" class="btn btn-default border-blue" id="btnAuthRm">删除</button>
	</div>
	<div class="group-box">
		<table class="table table-bordered table-striped table-condensed table-hover" style="table-layout: fixed;">
			<thead>
				<tr>
					<th width="5%" style="text-align: center;"><input type="checkbox" id="checkAuthListAll"/></th>
					<th width="20%">权限名称</th>
					<th width="35%">权限描述</th>
					<th width="25%">权限api</th>
					<th width="15%">状态</th>
				</tr>
			</thead>
			<tbody id="authListTable">
				<tr th:each="entity : ${authMap?.get('rows')}">
					<td style="text-align: center;"><input class="id" type="checkbox" th:value="${entity.id}"/></td>
					<td th:title="${entity.name}" th:text="${entity.name}"></td>
					<td th:title="${entity.description}" th:text="${entity.description}"></td>
					<td th:title="${entity.permission}" th:text="${entity.permission}"></td>
					<td th:title="${entity.enabled == 0 ?'禁用':'启用'}" th:text="${entity.enabled == 0 ?'禁用':'启用'}"></td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
<div class="page-msg">共<span th:text="${authMap.total}"></span>记录</div>
<input type="hidden" th:value="${authMap.total}" id="authTotal">
<ul class="pagination" id="authPagination"></ul>
</body>
</html>